<template>
    <div>
        <navigationBar
            :bgType="3"
            :backType="2"
            :navigationTitle="type == 0 ? '隐私协议' : '用户协议'"
        />
        <rich-text :nodes="content"></rich-text>
    </div>
</template>
<script>
export default {
    data() {
        return {
            content: "",
            type: 0,
        };
    },

    onLoad(options) {
        this.type = options.type;

        if (this.type == 0) {
            this.content =
                uni.getStorageSync("___init_data___").PrivacyAgreement;
        } else if (this.type == 1) {
            this.content = uni.getStorageSync("___init_data___").UserProtocol;
        }
        uni.setNavigationBarTitle({
            title: this.type == 0 ? "隐私协议" : "用户协议",
        })
    },

    methods: {},
};
</script>
<style lang="scss" scoped>
</style>